FROM openjdk:8u171-jre-alpine
RUN mkdir /app
RUN mkdir /app/logs
COPY keter-dubbo-0.1.jar /app
ARG SERVICE_HOST=${SERVICE_HOST}
RUN touch /var/log/1.txt
ENV DUBBO_PROTOCOL_HOST ${SERVICE_HOST}
EXPOSE ${PORT}
WORKDIR /app
CMD java -jar keter-dubbo-0.1.jar > logs/keter-dubbo.log && tail -f /var/log/1.txt
